<extend name="Layout/index" />
<block name="breadcrumb-01">
    <li>
        <i class="icon-home home-icon"></i>
        <a href="<{:U('Admin/Index/index')}>">首页</a>
    </li>
    <li class="active">轮播图管理</li>
</block>
<block name="search">
<!-- <div class="nav-search" id="nav-search">
    <form class="form-search" action="<{:U('User/index')}>" method="get">
        <span class="input-icon" >
            <input type="text" placeholder="请输入用户名" class="nav-search-input" id="nav-search-input" autocomplete="off" name="name" />
            <i class="icon-search nav-search-icon"></i>
        </span>
    </form>
</div> -->
</block>
<block name="breadcrumb-02">
    <h1>
        轮播图管理
        <small>
            <i class="icon-double-angle-right"></i>
             轮播图
        </small>
    </h1>
</block>
<block name="main">

    <div class="row">
        <div class="col-md-12">
            
            <form action="__URL__/upload" enctype="multipart/form-data" method='post' class="form-horizontal" >

                <div class="form-group" style="">
                    <label for="" class="col-sm-2 control-label">第一张轮播图：</label>
                    <div class="col-sm-4">
                        <input type="file" name="banner1" id="banner1" class="form-control" >
                        <br/>
                        <input type="text" name="title"  class="form-control" placeholder="请输入一个轮播图标题">
                        <br/>
                        <select name="url">
                            <volist name="articles" id="art">
                                <option value="<{$art.id}>"><{$art.title}></option>
                            </volist>
                        </select>
                        <input type="hidden" name="bannerName" class="form-control" value="banner1">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-4">
                      <button type="submit" class="btn btn-info">替换</button>
                    </div>
                </div>
        
            </form>

            <form action="__URL__/upload" method='post' class="form-horizontal" enctype="multipart/form-data">

                <div class="form-group" style="">
                    <label for="" class="col-sm-2 control-label">第二张轮播图：</label>
                    <div class="col-sm-4">
                        <input type="file" name="banner2" class="form-control">
                        <br/>
                        <input type="text" name="title"  class="form-control" placeholder="请输入一个轮播图标题">
                        <br/>
                        <select name="url">
                            <volist name="articles" id="art">
                                <option value="<{$art.id}>"><{$art.title}></option>
                            </volist>
                        </select>
                        <input type="hidden" name="bannerName" class="form-control" value="banner2">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-4">
                      <button type="submit" class="btn btn-info">替换</button>
                    </div>
                </div>
        
            </form>

            <form action="__URL__/upload" method='post' class="form-horizontal" enctype="multipart/form-data">

                <div class="form-group" style="">
                    <label for="" class="col-sm-2 control-label">第三张轮播图：</label>
                    <div class="col-sm-4">
                        <input type="file" name="banner3" class="form-control" >
                        <br/>
                        <input type="text" name="title"  class="form-control" placeholder="请输入一个轮播图标题">
                        <br/>
                        <select name="url">
                            <volist name="articles" id="art">
                                <option value="<{$art.id}>"><{$art.title}></option>
                            </volist>
                        </select>
                        <input type="hidden" name="bannerName" class="form-control" value="banner3">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-4">
                      <button type="submit" class="btn btn-info">替换</button>
                    </div>
                </div>
        
            </form>
        </div>
    </div>
</block>